package com.apkcore.camera2

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.apkcore.camera2.databinding.ActivityMainBinding

class MainActivity : AppCompatActivity() {
    companion object {
        private const val TAG = "MainActivity"
    }

    private lateinit var activityMainBinding: ActivityMainBinding

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        activityMainBinding = ActivityMainBinding.inflate(layoutInflater)
        setContentView(activityMainBinding.root)
        val beginTransaction = supportFragmentManager.beginTransaction()
        beginTransaction.add(R.id.aaaaa,MyFragment())
        beginTransaction.commitNow()
    }

    override fun onDestroy() {
        super.onDestroy()
    }
}